﻿<Window x:Class="WindSimServiceHost.TrayPart"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tray="http://www.hardcodet.net/taskbar"
        DataContext="{Binding RelativeSource={RelativeSource Self}}"
        Title="MainWindow" Height="0" Width="0" ShowInTaskbar="False"
        Visibility="Hidden">
    <Window.Resources>
        <!--<ResourceDictionary Source="Resources/aero.normalcolor.xaml"/>-->
    </Window.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <tray:TaskbarIcon Name="tiServiceStatus" IconSource="/Images/Icon_default.ico" Grid.ColumnSpan="2">
            <tray:TaskbarIcon.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Status" Click="miGetServiceStatus_Click" />
                    <Separator />
                    <MenuItem Header="Dienst beenden" Click="miShutdownService_Click" />
                </ContextMenu>
            </tray:TaskbarIcon.ContextMenu>
        </tray:TaskbarIcon>
    </Grid>
</Window>
